const { execSync } = require('child_process') // node 子进程模块

const env = process.env

console.log(execSync)
execSync('npm run build', { env, stdio: 'inherit' })
